/**
 * 
 */
package fr.data.structure.hashage_chainage_lineraire;

import fr.data.structure.hashage.Entry;

/**
 * @author fred
 * 
 */
public class Node {
	private Entry entry;
	private Node next;
	private Node prev;

	// Accesseurs
	public int getKey() {
		return entry.getKey();
	}

	public Object getValue() {
		return entry.getValue();
	}

	public Node getNext() {
		return next;
	}

	public Node getPrev() {
		return prev;
	}

	// Mutateurs
	public void setValue(Object value) {
		entry.setValue(value);
	}

	public void setNext(Node next) {
		this.next = next;
	}

	public void setPrev(Node prev) {
		this.prev = prev;
	}
	
	//Constructeur
	public Node(Entry entry) {
		this(entry, null);
	}

	public Node(Entry entry, Node next) {
		this.entry = entry;
		this.next = next;
		this.prev = null;
	}
}